use bytes::BytesMut;
use tokio::io::BufWriter;
use tokio::net::TcpStream;

///包装一个简易的处理tcp链接的类，同来处理数据的接受和发送
#[derive(Debug)]
pub struct Connection {
    stream: BufWriter<TcpStream>,
    buffer: BytesMut,
}

impl Connection {
    pub fn new() -> Self {
        // Self {}
        todo!()
    }
}

#[test]
fn connection_test() {}
